/*重置样式*/

* {
    margin: 0;
    padding: 0;
}

ul li {
    list-style: none;
}

a {
    color: black;
    text-decoration: none;
}

//变量，集合
@p_green: #1dd388;
@p_black: #3c3c3c;
@yahei: "微软雅黑";
.zero(){
    left: 0;
    top: 0;
}

/*导航*/

.navi {
    width: 500px;
    height: 56px;
    margin: 20px auto;
    position: relative;
    .zero();
    ul {
        li {
            float: left;
            &:hover a {
                color: white;
            }
            a {
                display: inline-block;
                color: @p_black;
                font-family: @yahei;
                font-size: 16px;
                height: 56px;
                line-height: 56px;
                text-align: center;
                padding: 0 20px;
                position: relative;
                .zero();
                &:focus {
                    outline: none;
                }
            }
            &:first-child a {
                color: white;
            }
        }
    }
    .nav_bg {
        height: 56px;
        width: 72px;
        background-color: @p_green;
        border-radius: 10px;
        position: absolute;
        .zero();
        z-index: -1;
    }
}